package CreatorUtil;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import persistent.*;

/**
 * Servlet implementation class NewTreatmentRecordServlet
 */
public class AddDocOrdersServlet extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response) 
					throws ServletException, java.io.IOException {
		try
		{
			TreatmentRecord tr = null;
			DocOrders docO = new DocOrders(tr, request.getParameter("drugbox"), 
					 request.getParameter("druginstrucbox"), request.getParameter("labbox"), 
					request.getParameter("followupbox"), request.getParameter("otherbox"));
			
			response.sendRedirect("doctorMain.jsp");
			
		}
		catch(Throwable theException){
			System.out.println(theException);
		}
	}

}